<template>
  <div style="padding: 20px">
    <div class="contents">
      <el-tabs
        style="height: 100%"
        v-model="activeTab"
        type="card"
        @tab-change="handleClick"
      >
        <el-tab-pane style="height: 100%" label="计划花销" name="planEx">
          <div class="components-content">
            <planEx ref="planExRef" />
          </div>
        </el-tab-pane>
        <el-tab-pane style="height: 100%" label="花销统计" name="countEx">
          <div class="components-content">
            <countEx ref="countExRef" />
          </div>
        </el-tab-pane>
        <el-tab-pane style="height: 100%" label="会员账号" name="account">
          <div class="components-content">
            <account ref="accountRef" />
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script lang="ts" setup>
import planEx from '@/views/expenses/plan/index.vue'
import countEx from '@/views/expenses/count/index.vue'
import account from '@/views/expenses/account/index.vue'

import { ref } from 'vue'

const executionRef = ref<any>(null)
const completedRef = ref<any>(null)
const abandonedRef = ref<any>(null)

const activeTab = ref('planEx')

const handleClick = () => {}
</script>

<style lang="scss" scoped></style>
